/*	speaker_pwm.c 
 *  Arizona State University
 *  CSE 325: Embedded Systems Programming
 *  Lab 6: Nunchuk Pac man 
 *  Georgii Tkachuk, Brentton Garber
 *  Emails: 	gtkachuk@asu.edu btgarber@asu.edu
 * 	Description: The speaker module initializes the PWM module. 
 * 
 */


#include "common.h"

void pwm_init()
{
	//signal is low then high 
	MCF_GPIO_PTAPAR |= (3<<6);
	//MCF_GPIO_DDRTA |= (1<<2);
	MCF_GPIO_SETTA |= (1<<3);
	
	MCF_PWM_PWMPOL |= (1<<7);
	MCF_PWM_PWMCLK |= (1<<7);
	
	
}
